package cc.idoone.spring_boot_hello.exception;

/**
 * 错误信息
 *
 * @author hemj
 * @version 2017/9/22
 */
public class ErrorInfo<T> {

	public static final String OK = "0";
	public static final String ERROR = "1";

	private String code;
	private String message;
	private String url;
	private T data;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}